local extension = Package:new("moepack_token", Package.CardPack)
extension.extensionName = "moepack"

Fk:loadTranslationTable{
  ["moepack_token"] = "萌包衍生牌",
}


local makima = fk.CreateCard{
  name = "&makima__peach",
  type = Card.TypeBasic,
  skill = "peach_skill",
}
extension:addCardSpec("makima__peach", Card.Heart, 6)
Fk:loadTranslationTable{
  ["makima__peach"] = "生姜炒肉",
	[":makima__peach"] = "基本牌（衍生牌）<br /><b>时机</b>：出牌阶段/一名角色处于濒死状态时<br /><b>目标</b>：已受伤的你/处于濒死状态的角色<br /><b>效果</b>：目标角色回复1点体力。",
}

local lq_come = fk.CreateCard{
  name = "&lq_come",
  type = Card.TypeBasic,
  skill = "lq_come_skill",
}
extension:addCardSpec("lq_come", Card.Spade, 1)
Fk:loadTranslationTable{
  ["lq_come"] = "临",
	[":lq_come"] = "基本牌（衍生牌）<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：你<br /><b>效果</b>：复原武将牌，并移动场上一张牌。",
}

local lq_dye = fk.CreateCard{
  name = "&lq_dye",
  type = Card.TypeBasic,
  skill = "lq_dye_skill",
}
extension:addCardSpec("lq_dye", Card.Spade, 1)
Fk:loadTranslationTable{
  ["lq_dye"] = "染",
	[":lq_dye"] = "基本牌（衍生牌）<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：一名其他角色<br /><b>效果</b>：与目标角色各摸一张牌，若摸到的牌类型相同，你吸取其一点体力。",
}

local lq_yoke = fk.CreateCard{
  name = "&lq_yoke",
  type = Card.TypeBasic,
  skill = "lq_yoke_skill",
}
extension:addCardSpec("lq_yoke", Card.Spade, 1)
Fk:loadTranslationTable{
  ["lq_yoke"] = "枷",
	[":lq_yoke"] = "基本牌（衍生牌）<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：一名没有龙契的角色<br /><b>效果</b>：令目标角色获得龙契直到其进入濒死状态。",
}


local enemy = fk.CreateCard{
  name = "&emo__enemy_at_the_gates",
  type = Card.TypeTrick,
  skill = "emo__enemy_at_the_gates_skill",
}
extension:addCardSpec("emo__enemy_at_the_gates", Card.Spade, 7)
Fk:loadTranslationTable{
  ["emo__enemy_at_the_gates"] = "兵临城下",
  ["enemy_at_the_gates"] = "兵临城下",
  [":emo__enemy_at_the_gates"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：一名其他角色<br/>"..
  "<b>效果</b>：你亮出牌堆顶的四张牌，然后依次对目标角色使用其中的【杀】。",
  ["#emo__enemy_at_the_gates"] = "选择一名其他角色，亮出牌堆顶的四张牌，依次对其使用其中的【杀】",
}

local cent_coin = fk.CreateCard{
  name = "&cent_coin",
  type = Card.TypeTrick,
  skill = "cent_coin_skill",
}
extension:addCardSpec("cent_coin", Card.Spade, 1)
extension:addCardSpec("cent_coin", Card.Heart, 1)
extension:addCardSpec("cent_coin", Card.Club, 1)
extension:addCardSpec("cent_coin", Card.Diamond, 1)
Fk:loadTranslationTable{
  ["cent_coin"] = "幸运币",
  [":cent_coin"] = "锦囊牌（衍生牌）<br /><b>时机</b>：出牌阶段<br /><b>目标：</b>你<br /><b>效果：</b>目标角色摸一张牌",
}

local kill_demon = fk.CreateCard{
  name = "&kill_demon",
  type = Card.TypeTrick,
  is_damage_card = true,
  skill = "kill_demon_skill",
  special_skills = { "recast" },
}
extension:addCardSpec("kill_demon", Card.Spade, 1)
extension:addCardSpec("kill_demon", Card.Spade, 3)
extension:addCardSpec("kill_demon", Card.Spade, 5)
extension:addCardSpec("kill_demon", Card.Spade, 7)
extension:addCardSpec("kill_demon", Card.Club, 2)
extension:addCardSpec("kill_demon", Card.Club, 4)
extension:addCardSpec("kill_demon", Card.Club, 6)
extension:addCardSpec("kill_demon", Card.Club, 8)
Fk:loadTranslationTable{
  ["kill_demon"] = "除魔",
  [":kill_demon"] = "锦囊牌（衍生牌）<br /><b>时机</b>：出牌阶段<br /><b>目标：</b>体力上限最大的角色<br /><b>效果：</b>对目标角色造成1点伤害，扣减其1点体力上限，然后将此牌移出游戏。",
}




local assault_rifle = fk.CreateCard{
  name = "&assault_rifle",
  type = Card.TypeEquip,
  equip_skill = "#assault_rifle_skill",
  sub_type = Card.SubtypeWeapon,
  attack_range = 7,
  on_uninstall = function(self, room, player)
    Weapon.onUninstall(self, room, player)
    room:setPlayerMark(player, "@ARbullet", 0)
  end,
}

extension:addCardSpec("assault_rifle", Card.Spade, 13)
Fk:loadTranslationTable{
  ["assault_rifle"] = "突击步枪",
  [":assault_rifle"] = "装备牌·武器（衍生牌）<br /><b>攻击范围</b>：7<br /><b>武器技能</b>：你使用【杀】指定唯一目标后，你可以消耗1枚子弹，将一张黑色手牌当【杀】对其使用。你回合结束时获得1枚子弹，卸载武器时移除所有子弹。",
}

local kunwu_sword = fk.CreateCard{
  name = "&kunwu_sword",
  type = Card.TypeEquip,
  equip_skill = "#kunwu_sword_skill",
  sub_type = Card.SubtypeWeapon,
  attack_range = 3,
}
extension:addCardSpec("kunwu_sword", Card.Spade, 2)
Fk:loadTranslationTable{
  ["kunwu_sword"] = "锟铻剑",
  [":kunwu_sword"] = "装备牌·武器（衍生牌）<br /><b>攻击范围</b>：3<br /><b>武器技能</b>：每当你使用【杀】被目标抵消时，你可以与其各失去一点体力，令此【杀】仍然生效。",
}


local whitefox = fk.CreateCard{
  name = "&whitefox",
  type = Card.TypeEquip,
  equip_skill = "#whitefox_skill",
  sub_type = Card.SubtypeTreasure,
}
extension:addCardSpec("whitefox", Card.Club, 10)
Fk:loadTranslationTable{
  ["whitefox"] = "白狐",
  [":whitefox"] = "装备牌·宝物（衍生牌）<br/><b>宝物技能</b>：锁定技，出牌阶段开始时，你视为使用【酒】，然后受到1点无来源伤害。",
}

local dismember = fk.CreateCard{
  name = "&dismember",
  type = Card.TypeEquip,
  equip_skill = "#dismember_skill",
  sub_type = Card.SubtypeTreasure,
}
extension:addCardSpec("dismember", Card.Spade, 1)
Fk:loadTranslationTable{
  ["dismember"] = "断尸",
  [":dismember"] = "装备牌·宝物（衍生牌）<br/><b>宝物技能</b>：锁定技，你手牌上限+2。",
}



-- 将牌的特征信息加入本体
extension:loadCardSkels {
  makima,
  lq_come,
  lq_dye,
  lq_yoke,

  enemy,
  cent_coin,
  kill_demon,

  assault_rifle,
  kunwu_sword,
  whitefox,
  dismember,
}

return extension
